package com.ytjj.qmyx.mall.enums;

import lombok.Getter;

/**
 * 达人标签
 */
@Getter
public enum PlatformStrictFlagEnum {
    NEW(1,"新晋"),
    HOT(2,"热门"),
    INDEX_INCOMMENT(3,"首页推荐"),
    OTHER(0,"无");

    private int code;

    private String msg;

    PlatformStrictFlagEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }


    public static String getType(int code) {
        PlatformStrictFlagEnum[] values = PlatformStrictFlagEnum.values();
        for(PlatformStrictFlagEnum enums : values){
            if(enums.getCode() == code){
                return enums.getMsg();
            }
        }
        return null;
    }
}
